<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<f:view xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:util="http://java.sun.com/jsf/composite/util">
	<ui:composition template="/views/layouts/main.xhtml">
	<ui:define name="content">
		<h:form id="formPrincipal">
			<div class="grid_18">
				<div class="grid_6">
					<util:home action="#{projetoBean.goHome}" />
					<p:splitButton value="#{i18n.btn_Novo}" action="#{projetoBean.goCreate}" 
						immediate="true" ajax="false" icon="ui-icon ui-icon-plus">
						<p:menuitem value="#{i18n.btn_Editar}" action="#{projetoBean.goEdit}" immediate="true" 
							icon="ui-icon ui-icon-pencil" ajax="false" rendered="#{projetoBean.projetoInstance.id ne null}" />
						<p:menuitem value="#{i18n.btn_NenhumaAcao}" icon="ui-icon ui-icon-cancel" />
					</p:splitButton>
					<p:commandButton type="button" value="#{i18n.btn_Buscar}" 
						icon="ui-icon ui-icon-search" onclick="dialogoBuscaClientePortal.show()" />
				</div>
				<util:titulo value="#{i18n.TituloClientePortal}" />
				<div class="grid_1">
					<util:help />
				</div>
			</div>
			
			<div class="grid_18">
				<p:messages />
			</div>
			
			<p:tabView style="height:400px;background: transparent;" id="tabView" styleClass="grid_18">
				<p:tab id="abaProjeto" title="#{i18n.Projeto_AbaProjeto}">
					<ui:include src="/views/projeto/abaProjeto.xhtml" />
				</p:tab>
				<p:tab id="abaArtefato" title="#{i18n.Projeto_AbaArtefato}">
					<ui:include src="/views/projeto/abaArtefato.xhtml" />
				</p:tab>
				<p:tab id="abaescricao" title="#{i18n.Projeto_AbaDescricao}">
					<ui:include src="/views/projeto/abaDescricao.xhtml" />
				</p:tab>
			</p:tabView>
		</h:form>
	</ui:define>
	</ui:composition>
</f:view>